
from selenium.webdriver.common.by import By
from selenium import webdriver
from time import sleep
import pytest
from selenium.webdriver.support import expected_conditions
from selenium.webdriver.support.wait import WebDriverWait

from web.page_object.Base_Page import Base_Page


class Transfers(Base_Page):
    def transfers(self,dd,aa):
        self.driver.find_element(By.ID,"kw").send_keys(f"{dd}")
        self.driver.find_element(By.ID, "kw").send_keys(f"{aa}")





        # self.driver.find_element(By.XPATH,'//*[@class="input-group"]/div[2]/span').click()
        # self.driver.find_element(By.XPATH,'//*[@class="col left label"]/span').click()
        # self.driver.find_element(By.XPATH,'//*[@class="searchCity"]').send_keys("广州")
        # self.driver.find_element(By.XPATH,'//*[@class="searchList"]/div').click()
        # self.driver.find_element(By.XPATH,'//*[@class="col right label"]/span').click()
        # self.driver.find_element(By.XPATH,'//*[@class="searchCity"]').send_keys("北京大兴")
        # self.driver.find_element(By.XPATH, '//*[@class="searchList"]/div').click()
        # self.driver.find_element(By.XPATH,'//*[@placeholder="请选择航班起飞日期"]').click()
        # self.driver.find_element(By.XPATH,'//*[@class="months"]/div[2]/div[2]/div[1]/div[7]').click()
        # self.driver.find_element(By.XPATH,'//*[@class="filght-list"]/div[2]').click()
        #
        # self.driver.find_element(By.XPATH,'//*[@class="location"]/button[1]').click()
        # #下面的确认按钮要做黑名单
        # self.driver.find_element(By.XPATH,'//*[@class="confirm-btn"]')









        sleep(4)







